package com.cx.mall.pay.service.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cx.mall.common.model.entity.PayLog;
import com.cx.mall.pay.mapper.PayLogMapper;
import com.cx.mall.pay.service.IPayLogService;
import org.springframework.stereotype.Service;

@Service
public class PayLogServiceImpl extends ServiceImpl<PayLogMapper, PayLog> implements IPayLogService {
    @Override
    public PayLog queryByOrderId(String orderId) {
        LambdaQueryChainWrapper<PayLog> query = new LambdaQueryChainWrapper<>(baseMapper);
        PayLog payLog = query.eq(PayLog::getOrderId, orderId).one();
        return payLog;
    }

}
